package com.victualler.business.customer.repository;


import com.victualler.business.customer.dto.dataview.MounthQuantityDto;
import com.victualler.business.customer.dto.print.PreCustomerPrintDto;
import com.victualler.business.customer.entity.PreCustomerOrderDao;
import com.victualler.core.base.repository.IBaseQueryRepository;

import java.util.List;


/**
 * @author Guoshichang
 * @function 封装用于复杂sql查询的API. 为每个实体的repository层提供便利操作
 */
public interface PreCustomerOrderQueryRepository extends IBaseQueryRepository<PreCustomerOrderDao,Long> {

    /**
     * @author Guoshichang
     * @since 12:51 on 2018/11/14.
     * @param orderNo orderNo订单号
     * @return List<InventoryPrintDto>
     * @Function  获取库存变更单的实体对象
     */
    public List<PreCustomerPrintDto> getExportModelList(String orderNo);

    public List<MounthQuantityDto> getSumQuantityDataView();

    /**
     * @author Guoshichang   
     * @since 11:52 on 2019/1/31.
     * @param null
     * @return 
     * @Function 获得前三十天内销量top10商品
     */
    public List<MounthQuantityDto> getQuantityByGoods();

    /**
     * @author Guoshichang
     * @since 11:52 on 2019/1/31.
     * @param null
     * @return
     * @Function 获得前三十天内销量top10的商家
     */
    public List<MounthQuantityDto> getQuantityByCustomer();
}
